import request from "@/axios";

let baseURL = '/club/event'
let msgBaseURL = '/club/message/insert'

// 分页查询接口
export function listEvent(params) {
    return request({
        url: baseURL + '/list',
        method: 'get',
        params: params
    })
}

// 查询接口
export function selectEvent(params) {
    return request({
        url: baseURL + '/select',
        method: 'get',
        params: params
    })
}

// 删除接口
export function deleteEvent(params) {
    return request({
        url: baseURL + '/delete',
        method: 'post',
        params: params
    })
}

// 更新接口
export function updateEvent(params) {
    return request({
        url: baseURL + '/update',
        method: 'post',
        data: params
    })
}

// 插入接口
export function insertEvent(params) {
    return request({
        url: baseURL + '/insert',
        method: 'post',
        data: params
    })
}

// 批量删除接口
export function deleteBatchEvent(params) {
    return request({
        url: baseURL + '/deleteBatch',
        method: 'post',
        data: params
    })
}

//搜索
export function searchEvent(params) {
    return request({
        url: baseURL + '/select',
        method: 'get',
        params: params,
    })
}

//发送消息
export function sendMsg(params) {
    return request({
        url: msgBaseURL,
        method: 'post',
        params: params,
    })
}